<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <c:if test="${msg!=null}">
        <script type="text/javascript">
            var msg = "${msg}"
            alert(msg);
        </script>
    </c:if>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
    <title>我的关注好友</title>
    <script type="text/javascript" src="script/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="script/friend.js"></script>
    <script type="text/javascript" src="srcipt/profile.js"></script>
    <link rel="stylesheet" type="text/css" media="all" href="testJs/style.css">
    <link rel="stylesheet" type="text/css" media="all" href="testJs/mo.css">
    <script type="text/javascript" src="testJs/jquery.js "></script>
    <script type="text/javascript" src="testJs/touchslide.js "></script>
    <link rel="stylesheet" id="dashicons-css" href="testJs/dashicons.min.css" type="text/css" media="all">
    <link rel='stylesheet' id='admin-bar-css' href='testJs/admin-bar.min.css' type='text/css' media='all'/>
</head>
<body class="bg">
<!-- header开始-->
<%@include file="../header.jsp" %>
<div id="header" style="padding-top: 30px">
    <div class="wrapper">
        <div class="nav fl">
            <a href="javascript:;" class="nav-m"><i class="mo-menu"></i></a>
            <div class="logo fl">
                <h1><a href="http://localhost/wordpress" title="微博"><img src="images/logo.png"></a>
                </h1>
            </div>
        </div>
        <div class="tool fr">
            <a href="friend">微博</a>
            <a href="attenIndex">关注</a>
            <a href="fansIndex">粉丝</a>
            <a href="blankIndex">黑名单</a>
        </div>
    </div>
</div>
<!-- header结束-->
<!-- container 开始-->

<div id="content">
    <div class="wrapper">
        <div class="main fl">
            <div class="list w750 mt35">
                <h3 class="h3" align="center">
                    关注名单
                </h3>
                <table border="0" align="center" cellpadding="0" cellspacing="0" id="container">
                    <tr>
                        <td width="670" height="600" valign="top">
                            <!-- weibotwo 开始-->
                            <c:forEach items="${attUsers}" var="attUser">
                                <table id="weibo" width="90%" border="0" align="center" cellpadding="3" cellspacing="0">


                                    <tr style="background-color: #F0F0F0;font-size: 13px">
                                        <td width="76%" valign="top">
                                            <table width="100%" border="0" cellpadding="0" cellspacing="0"
                                                   id="curruserdetail">

                                                <tr>
                                                    <td rowspan="4" width="90"><img src="${attUser.images}" width="80"
                                                                                    height="80"/>
                                                    </td>
                                                    <td><a href="user_index?userId=${attUser.id}"
                                                           style="text-decoration:none">${attUser.nickName}</a></td>
                                                    <td>&nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td align="left"><a href="userIndex?userId=${attUser.id}"
                                                                        style="text-decoration:none">关注(${attUser.attention})&nbsp;|&nbsp;粉丝(${attUser.fans})&nbsp;|&nbsp;微博(${attUser.blogNumber})</a>
                                                    </td>
                                                    <td>
                                                        <a href="toAttentionOrUnsubscribe?operation=unsubscribe&bUserId=${attUser.id}"
                                                           style="text-decoration:none">已关注</a></td>
                                                </tr>
                                                <tr>
                                                    <c:if test="${attUser.sex==1}">
                                                        <td>男</td>
                                                    </c:if>
                                                    <c:if test="${attUser.sex==0}">
                                                        <td>女</td>
                                                    </c:if>
                                                    <td><a href="message?userBId=${attUser.id}"
                                                           style="text-decoration:none">私信</a></td>
                                                </tr>
                                                <tr>
                                                    <td>${attUser.sign}</td>
                                                    <td><a href="toBlack?bId=${attUser.id}"
                                                           style="text-decoration:none">拉黑</a></td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr></tr>
                                </table>
                                <br/>

                            </c:forEach>

                            <!-- weibotwo 结束-->

                            <!-- 分页开始 -->
                            <table align="center" id="page">
                                <tr>
                                    <td align="right">
                                        <c:if test="${pageNum!=1}">
                                            <a href="attenIndex?pageNum${pageNum-1}"
                                               style="text-decoration:none">上一页</a>&nbsp; &nbsp;
                                        </c:if>
                                        第&nbsp; ${pageNum} &nbsp;页 &nbsp;&nbsp;
                                        <c:if test="${pageNum != totalPage}">
                                            <a href="attenIndex?pageNum${pageNum+1}"
                                               style="text-decoration:none">下一页</a>
                                        </c:if>
                                        &nbsp;&nbsp;&nbsp;&nbsp;
                                        共 &nbsp; ${totalPage} &nbsp;页
                                    </td>
                                </tr>
                            </table>
                            <!-- 分页结束 -->

                        </td>
                    </tr>
                </table>
                <!-- container 结束-->
            </div>



        </div>
        <div class="sidebar w320 fr">
            <div id="localtime">
                <font>2019-04-26 18:27:30 星期五</font>
            </div>
            <jsp:include page="../userinfo.jsp"/>
        </div>
    </div>
    <!--footer开始-->
    <%@include file="../footer.jsp" %>
    <!--footer结束-->
</div>
<script type="text/javascript" src=" testJs/highlight.js"></script>
<script type="text/javascript" src=" testJs/online.js"></script>
</body>
</html>